package com.liuh.edu.pojo;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuh
 * @since 2018-06-21
 */
@TableName("class_room")
public class ClassRoom extends Model<ClassRoom> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cr_id", type = IdType.AUTO)
    private Integer crId;

    @TableField("cr_name")
    private String crName;

    private Integer touying;
    
    private Date date1;
    
    public Date getDate1() {
        return date1;
    }

    public void setDate1(Date date1) {
        this.date1 = date1;
    }
    public Integer getCrId() {
        return crId;
    }

    public void setCrId(Integer crId) {
        this.crId = crId;
    }
    public String getCrName() {
        return crName;
    }

    public void setCrName(String crName) {
        this.crName = crName;
    }
    public Integer getTouying() {
        return touying;
    }

    public void setTouying(Integer touying) {
        this.touying = touying;
    }

    @Override
    protected Serializable pkVal() {
        return this.crId;
    }

    @Override
    public String toString() {
        return "ClassRoom{" +
        "crId=" + crId +
        ", crName=" + crName +
        ", touying=" + touying +
        "}";
    }
}
